package com.hrma.services.impl;

import com.hrma.dao.WorkScheduleMapper;
import com.hrma.entity.WorkSchedule;
import com.hrma.entity.WorkSchedulePO;
import com.hrma.services.WorkScheduleService;
import org.springframework.stereotype.Service;


@Service
public class WorkScheduleImpl implements WorkScheduleService {
    private final WorkScheduleMapper workScheduleMapper;

    public WorkScheduleImpl(WorkScheduleMapper workScheduleMapper) {
        this.workScheduleMapper = workScheduleMapper;
    }

    @Override
    public void update(WorkSchedule data) {
        workScheduleMapper.update(data);
    }

    @Override
    public WorkSchedule getTime() {
        return workScheduleMapper.getTime();
    }
}
